import { request, METHOD } from "@/utils/request";
import {
  MATERIALS,
  ADDMATERIALS,
  DELMATERIALS,
  ONEMATERIALS,
  UPDATEMATERIALS,
  DELLIST,
  UPDATEMATERIALLABEL,
  CHECKMATERIALS
} from "./api";

export function list(params) {
  return request(MATERIALS, METHOD.GET, params);
}
export function add(params) {
  return request(ADDMATERIALS, METHOD.POST, params);
}
export function del(params) {
  return request(DELMATERIALS, METHOD.POST, params);
}
export function update(params) {
  return request(UPDATEMATERIALS, METHOD.POST, params);
}
export function findById(params) {
  return request(ONEMATERIALS, METHOD.GET, params);
}
export function delList(params) {
  return request(DELLIST, METHOD.POST, params);
}
export function updateMaterialLabel(params) {
  return request(UPDATEMATERIALLABEL, METHOD.POST, params);
}
export function checkMaterial(params) {
  return request(CHECKMATERIALS, METHOD.GET, params);
}
